package main

import (
	"fmt"
	"time"
)

func main() {
	p := fmt.Println
	p("Now you see me, now you don't.")
	now := time.Now()

	p(now)

	then := time.Date(2025, 6, 2, 16, 41, 0, 0, time.UTC)
	p(then)

	loc := time.FixedZone("UTC+8", 8*60*60)
	then1 := time.Date(2025, 6, 2, 16, 41, 0, 0, loc)
	p(then1)

	p(then1.After(then))
	p(then1.UTC())

	p(then.Year())
	p(then.YearDay())
	p(then.Month())
	p(then.Day())
	p(then.Hour())
	p(then.Minute())
	p(then.Second())
	p(then.Nanosecond())
	p(then.Location())

	p(then.Weekday())

	diff := then1.Sub(then)
	p(diff)

	diff = now.Sub(time.Now())
	p(diff)

	diff = time.Until(now)
	p(diff)

	then3 := then.Add(time.Hour * 8)
	p(then3)
	p(then3.Compare(then1))
	p(then.Format("2006-01-02 15:04:05"))
	p(then3.Format("2006-01-02 15:04:05"))
	p(then1.Format("2006-01-02 15:04:05"))
}
